﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"%>
<%@ Import Namespace="ElectronicRecords.Models" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Список услуг специалиста
</asp:Content>



<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Список услуг специалиста</h2>
    <h2><%=Ajax.ActionLink("Добавить", "GetProc/" + Url.RequestContext.RouteData.Values["id"].ToString(), new { }, new AjaxOptions { UpdateTargetId = "full" }, new {@class="g-button" })%></h2><br />
    <div id="full">
    
    <table id="maintable" >
        <tr>
            <th style="width:10%">
                Действие
            </th>
            <th style="width:10%">
                ID
            </th>
            <th style="width:60%">
                Название услуги
            </th>
             <th style="width:20%">
                Оборудование
            </th>
        </tr>
        <%foreach (Procedure_Specialist_XREF ps in (IEnumerable<Procedure_Specialist_XREF>)ViewData.Model)
           {%>
        <tr>
            <td>
              <a href= "Delete/<%=ps.ID_PROCEDURESPECIALIST %>"><img height="24" width="24" src="../../img/system.png"  ></a>
            </td>
            <td>
                <%=ps.ID_PROCEDURESPECIALIST%>
            </td>
            <td>
                <%=ps.Procedurs.Name %>
            </td>
             <td>
                <% if (ps.Procedurs.Equipments != null) { Html.Display(ps.Procedurs.Equipments.Name);}%>
            </td>
        </tr>
        <%} %>
    </table>
    </div>
    <div>
        <%: Html.ActionLink("Назад к списку", "List", new { }, new {@class="g-button" })%>
    </div>

</asp:Content>

